package com.gemme.gemme.view;

import android.content.Context;
import android.view.View;

import com.gemme.gemme.R;
import com.gemme.gemme.wode.AttributeSpecListBean;

import java.util.List;

public class FapiaoTypeDialog {
    BottomDialog dialog;

    public void showDialog(Context mContext){
//new int[]{R.id.close}
        dialog = new BottomDialog(mContext, R.layout.fapiao_type_dialog,
                new int[]{R.id.close});

        dialog.show();
        initView();
        dialog.setOnBottomItemClickListener(new BottomDialog.OnBottomItemClickListener() {
            @Override
            public void onBottomItemClick(BottomDialog dialog, View view) {
                switch (view.getId()) {
                    case R.id.close:
                        dialog.dismiss();
                        break;

                }
            }
        });
    }
    private void initView() {
        View view = dialog.getView();
        RoundCheckBox cheeckbox = view.findViewById(R.id.cheeckbox);
        cheeckbox.setChecked(true);
        cheeckbox.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                cheeckbox.setChecked(true);
            }
        });
    }



}
